package com.paranoid.shiro04;

import com.paranoid.shiro04.entity.User;
import com.paranoid.shiro04.mapper.UserMapper;
import com.paranoid.shiro04.service.UserService;
import com.paranoid.shiro04.utils.ApplicationContextUtils;
import org.springframework.beans.factory.annotation.Autowired;

public class Test {

    @Autowired
    private static UserMapper userMapper;

    public static void main(String[] args) {

        UserService userService = (UserService) ApplicationContextUtils.getBean("userService");
        final User jay = userService.findByUserName("jay");
        System.out.println(jay);
    }


}
